<style lang="less">
    @import "./style/base";
    @import "./style/icon";
    @import "./style/style";
    @import "./style/weui";
    /*@import "./style/weui-extend.css";*/

</style>
<script>
    import wepy from 'wepy';
    import 'wepy-async-function';

    export default class extends wepy.app {
        config = {
            pages: [
                'pages/main/main',                        //首页

                'pages/appraisal/authenticateDtl',        //我的鉴定-复议详情

                'pages/tj/payDeposit',                    //缴纳押金
                'pages/appraisal/guide',                  //新手指南
                'pages/aboutus/aboutMe',                  //关于
                'pages/bidList/ineedBuy',                 //我要出价

                'pages/bidList/sellerBid',                 //卖家出价
                'pages/order/fashion',                     //流行爆款
                'pages/appraisal/detailsListFalse',        //鉴定假
                'pages/appraisal/detailsListTrue',         //鉴定真

                'pages/classify/classMain',               //分类
                'pages/bidList/timeLimit',                 //时效
                'pages/commodity/commodityDetails',       //商品详情

                'pages/order/richSpace',                   //土豪空间
                'pages/personalCenter/register',           //注册
                'pages/personalCenter/phoneRegister',      //电话号码注册
                'pages/order/ordDetails',                  //订单进度详情
                'pages/bidList/sellerBidList',             //卖家出价列表
                'pages/bidList/buyerBidList',              //买家出价列表
                'pages/order/goddessSpace',                //女神空间
                'pages/order/salesReturn',                 //退货清单
                'pages/appraisal/freeAppraisal',           //免费发布

                'pages/personalCenter/purchase',           //立即购买
                'pages/personalCenter/purOrder',           //我的订单待支付
                'pages/personalCenter/price',              //卖家售价
                'pages/personalCenter/offer',              //买家出价
                'pages/appraisal/appraisalList',           //鉴定列表

                'pages/appraisal/strategy',                //鉴定攻略
                'pages/appraisal/identificationService',   //鉴定服务
                'pages/appraisal/ReleaseCompletion',       //发布鉴定完成
                'pages/personalCenter/login',              //登录
                'pages/index/classification',              //不要的分类
                'pages/personalCenter/me',                 //我的
                'pages/personalCenter/wxBindPhone',       //绑定手机

                'pages/personalCenter/coupons',            //我的优惠券
                'pages/common/addressAddPage',             //收货地址添加
                'pages/common/address',                    //收货地址管理
                'pages/personalCenter/setting',            //设置

                'pages/order/orderList',                   //我的购买
                'pages/order/outOrderList',                //我的出售
                'pages/bidList/returnOrderList',           //退货清单

                'pages/personalCenter/userDetails',        //用户详情
                'pages/personalCenter/name',               //昵称
                'pages/personalCenter/menAndwomen',        //性别
                'pages/personalCenter/intro',              //简介

                'pages/personalCenter/meranking',          //我的排名
                'pages/personalCenter/accountSecurity',    //账号与安全
                'pages/personalCenter/changeBind',         //更改绑定手机
                'pages/personalCenter/becomeVip',          //vip
                'pages/personalCenter/accountBind',        //账号设置
                'pages/personalCenter/record',             //成交记录

                'pages/classify/search',                   // 分类搜索
                'pages/bidList/ineedBuyChoose',             //app购买商品
                'pages/tj/introBuy',             //购买协议
                'pages/tj/introSale',             //用户协议
                'pages/tj/introQuality',             //正品质量保证流程
                'pages/tj/introIndex',             //首页新闻详情
            ],
            window: {
                backgroundTextStyle: 'dark',
                navigationBarBackgroundColor: '#FFFFFF',
                navigationBarTitleText: '集商城',
                navigationBarTextStyle: 'black',
                enablePullDownRefresh: false,
                backgroundColor: '#EFEFEF'

            },
            tabBar: {
                'color': '#999999',
                'selectedColor': '#ffb025',
                'backgroundColor': '#ffffff',
                'borderStyle': 'black',
                'list': [{
                    'pagePath':  'pages/main/main',
                    'text': '首页',
                    'iconPath': './images/common/newicon_selected.png',
                    'selectedIconPath': './images/common/newicon.png'
                }, {
                    'pagePath': 'pages/appraisal/identificationService',
                    'text': '鉴定服务',
                    'iconPath': './images/common/Identification.png',
                    'selectedIconPath': './images/common/Identification_selected.png'
                }, {
                    'pagePath': 'pages/personalCenter/me',
                    'text': '我的',
                    'iconPath': './images/common/me.png',
                    'selectedIconPath': './images/common/me_selected.png'
                }]
            },
            networkTimeout: {
                request: 30000  // 网络超时 30 秒
            },
            debug: true
        };

        globalData = {};

        constructor() {
            super();
            this.use('promisify');
            this.use('requestfix'); // 修复小程序请求并发问题


            // 所有 wepy 发送接口的接口拦截器，用于统一处理逻辑
            this.intercept('request', {   //
                config(p) {
                    p.timestamp = +new Date();
                    return p;
                }
            });
        }


    }

</script>
